package cn.test;

public class ArraySum {
	public static void main(String[] args) {
		int column1=1;
		double[][] array={{1.5, 2, 3, 4},
		{2.3, 5, 8, 9},
		{3, 5.4, 7, 10}};
		sumColumn(array,column1);
	}
	public static double sumColumn(double[][] matrix, int column) {
	double sum=0;
		for(int i=0;i<matrix.length;i++) {
			sum+=matrix[i][column];
		
	}
		
		System.out.println(sum);
		return 0.0;
	}
		
	
}
